home *** CD-ROM | disk | FTP | other *** search
/ Skunkware 5 / Skunkware 5.iso / include / Xm / DialogSP.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-06-30  |  2.7 KB  |  120 lines

  1. /* 
  2.  * (c) Copyright 1989, 1990, 1991, 1992 OPEN SOFTWARE FOUNDATION, INC. 
  3.  * ALL RIGHTS RESERVED 
  4. */ 
  5. /* 
  6.  * Motif Release 1.2
  7. */ 
  8. /*   $RCSfile: DialogSP.h,v $ $Revision: 10.1 $ $Date: 1994/02/03 15:36:12 $ */
  9. /*
  10. *  (c) Copyright 1989, DIGITAL EQUIPMENT CORPORATION, MAYNARD, MASS. */
  11. /*
  12. *  (c) Copyright 1987, 1988, 1989, 1990, 1991, 1992 HEWLETT-PACKARD COMPANY */
  13. /*
  14. *  (c) Copyright 1988 MASSACHUSETTS INSTITUTE OF TECHNOLOGY  */
  15. /*
  16. *  (c) Copyright 1988 MICROSOFT CORPORATION */
  17. #ifndef _XmDialogShellP_h
  18. #define _XmDialogShellP_h
  19.  
  20. #include <Xm/XmP.h>
  21. #include <Xm/DialogS.h>
  22. #include <X11/ShellP.h>
  23.  
  24. #ifdef __cplusplus
  25. extern "C" {
  26. #endif
  27.  
  28. /* macros: THESE BELONG IN XmP.h */
  29. #define XtX(w)         ((w)->core.x)
  30. #define XtY(w)         ((w)->core.y)
  31. #define XtWidth(w)     ((w)->core.width)
  32. #define XtHeight(w)     ((w)->core.height)
  33. #define XtBorderWidth(w) ((w)->core.border_width)
  34. #define XtBackground(w)     ((w)->core.background_pixel)
  35. #define XtSensitive(w)     ((w)->core.sensitive && (w)->core.ancestor_sensitive) 
  36.  
  37. #ifndef XtParent
  38. #define XtParent(w)     ((w)->core.parent)
  39. #endif
  40.  
  41.  
  42. /* The DialogShell instance record */
  43.  
  44. typedef struct 
  45. {
  46.     /* internal fields */
  47.     XtGrabKind         grab_kind;
  48.     Position        old_x, old_y;
  49. } XmDialogShellPart;
  50.  
  51.  
  52. /* Full instance record declaration */
  53.  
  54. typedef  struct _XmDialogShellRec 
  55. {    
  56.     CorePart            core;
  57.     CompositePart        composite;
  58.     ShellPart            shell;
  59.     WMShellPart            wm;
  60.     VendorShellPart        vendor;
  61.     TransientShellPart        transient;
  62.     XmDialogShellPart        dialog;
  63. } XmDialogShellRec;
  64.  
  65. typedef  struct _XmDialogShellWidgetRec /* OBSOLETE (for compatibility only).*/
  66. {    
  67.     CorePart            core;
  68.     CompositePart        composite;
  69.     ShellPart            shell;
  70.     WMShellPart            wm;
  71.     VendorShellPart        vendor;
  72.     TransientShellPart        transient;
  73.     XmDialogShellPart        dialog;
  74. } XmDialogShellWidgetRec;
  75.  
  76.  
  77.  
  78. /* DialogShell class structure */
  79.  
  80. typedef struct 
  81. {
  82.     XtPointer            extension;     /* Pointer to extension record */
  83. } XmDialogShellClassPart;
  84.  
  85.  
  86. /* Full class record declaration */
  87.  
  88. typedef struct _XmDialogShellClassRec 
  89. {
  90.     CoreClassPart         core_class;
  91.     CompositeClassPart         composite_class;
  92.     ShellClassPart         shell_class;
  93.     WMShellClassPart            wm_shell_class;
  94.     VendorShellClassPart     vendor_shell_class;
  95.     TransientShellClassPart      transient_shell_class;
  96.     XmDialogShellClassPart     dialog_shell_part;
  97. } XmDialogShellClassRec;
  98.  
  99.  
  100. externalref XmDialogShellClassRec  xmDialogShellClassRec;
  101.  
  102.  
  103. /********    Private Function Declarations    ********/
  104. #ifdef _NO_PROTO
  105.  
  106.  
  107. #else
  108.  
  109.  
  110. #endif /* _NO_PROTO */
  111. /********    End Private Function Declarations    ********/
  112.  
  113.  
  114. #ifdef __cplusplus
  115. }  /* Close scope of 'extern "C"' declaration which encloses file. */
  116. #endif
  117.  
  118. #endif /* _XmDialogShellP_h */
  119. /* DON'T ADD STUFF AFTER THIS #endif */
  120.